home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- TORDATE_DIR=/var/run/tordate
- TORDATE_DONE_FILE="${TORDATE_DIR}/done"
- INOTIFY_TIMEOUT=60
-
- # wait for the $TORDATE_DIR directory to appear
- while [ ! -d "$TORDATE_DIR" ]; do
- sleep 10
- done
-
- # wait for a guarantee that time is in Tor valid range
- while ! [ -e "$TORDATE_DONE_FILE" ]; do
- inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
- done
-
- exec /usr/local/bin/tails-security-check
-